import Vue from 'vue'

/**
 * 给指定对象添加响应式属性
 * @param raw
 * @param properties
 * @returns {*}
 */
export function assignReactiveProperties(raw, properties) {
  for (const propertiesKey in properties) {
    Vue.set(raw, propertiesKey, properties[propertiesKey])
  }
  return raw
}
